<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US">
<head> 
	<?php showHtmlHead(); ?>
	<link rel='stylesheet' href='css/OpspLayout.css'/>
	<title>C3 project page : <?php echo $projectname; ?></title>
</head>
<body>
	<div id="container">
		<div id="header">
			<div id="logo"></div>
			<div id="title"><h1>C3 Toolkit</h1></div>

			<div id="nav">
				<a href="http://www.umich.edu/~opsp">About OPSP</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<a href="">OPSP Blog</a> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
				Login to C3</div>

			<div id="corner"></div>
		</div>

<!--		<?php showHeader( "<a href=\"myhome.php\">Home</a> : ".$projectname );?> -->

		<div id="content">
			<?php showProjectInfo($projectId,$projectname,$description,$permissions);

			if($permissions["codeDocuments"]){
			?>
			<div class="actionBox" id="Coding">
				<div class="abHeader"><h3>My Coding Tasks</h3></div>
				<div class="abContents">
					<table class="clickTable"><?php showMyCurrentTasksAsTable($projectId); ?></table>
				</div>
				<div class="abFooter">
					<!-- <a href="myoldtasks.php?project=<?php echo $projectId;?>">View My Old Tasks</a> -->
				</div>
			</div>
			<?php
			}
			if($permissions["manageTasks"]){
			?>
			<div class="actionBox" id="Tasks">
				<div class="abHeader"><h3>Manage Tasks</h3></div>
				<div class="abContents"><table class="staticTable">
					<tr><td><b>User</b></td><td><b>Progess</b></td><td><b>Construct</b></a></td></tr>
					<?php showProjectTasksAsTable($projectId); ?>
				</table></div>
				<div class="abFooter"><a href="createtasks.php?project=<?php echo $projectId;?>">Create New Tasks</a></div>
			</div>
			<?php
			}

			if($permissions["manageConstructs"]){// showConstructs($projectId);
			?>
			<div class="actionBox" id="Constructs">
				<div class="abHeader"><h3>Manage Constructs</h3></div>
				<div class="abContents">
					<table class="clickTable"><?php echo showProjectConstructsAsTable($projectId); ?> </table>
				</div>
				<div class="abFooter"><a href="createconstruct.php?project=<?php echo $projectId;?>">Create New Construct</a></div>
			</div>
			<?
			}


			if($permissions["manageData"]){
			?>
			<div class="actionBox" id="Data">
				<div class="abHeader"><h3>Manage Data</h3></div>
				<div class="abContents"><table class="clickTable"><?php echo showProjectCorporaAsTable($projectId); ?></table></div>
				<div class="abFooter"><a href="uploadcorpus.php?project=<?php echo $projectId; ?>">Upload a Corpus</a></div>
			</div>
			<?php
			}
			if($permissions["manageClassifiers"]) showClassifiers($projectId);
			if($permissions["manageTeam"]) showTeamMembers($projectId);
			?>

		</div>
		<?php showFooter();?>
	</div>
</body>
</html> 
